/**
 * @description 框架路由
 */

import routerParse from '../utils/route-parse'

let router = {}

let context = require.context('../../views/framework', true, /^(?:(?!components).)+\/(?:([a-zA-Z_-]+\.vue)|(index\.js))$/i, 'lazy')
let jsonContext = require.context('../../views/framework', true, /^(?:(?!components).)+\/[a-zA-Z_-]+\.json$/i)

router = Object.values(routerParse(context, jsonContext))
export default router
